<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>轮播图</title>
    <link rel="stylesheet" href="./bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <style>
        /* .item img {
        width: 300px;
        height: 200px;
        } */
        .carousel {
            width: 700px;
            height: 100px;
        }
        .carousel-inner{
            width: 700px;
            height: 500px;
        }
        .carousel-inner .carousel-caption{
            position: absolute;
            top: 400px;
            text-align: center;
        }
        img{
            width: 100%;
            height: 100%;
            margin-top: 150px;
        }
        .carousel-indicators{
            position: absolute;
            top: 440px;
        }
        .left.carousel-control{
            position: absolute;
            top: 230px;
        }
        .right.carousel-control{
            position: absolute;
            top: 230px;
        }
     
    </style>
</head>
 
<body>
 
<div id="carousel-example-generic" class="carousel slide center-block" data-ride="carousel">
    <!-- Indicators -->
    <ol class="carousel-indicators">
        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
        <li data-target="#carousel-example-generic" data-slide-to="2"></li>
    </ol>
 
    <!-- Wrapper for slides -->
    <div class="carousel-inner" role="listbox">
        <div class="item active">
            <img src="./img/loop/loop1.jpg" alt="...">
            <!-- <div class="carousel-caption">
                新人专属福利
            </div> -->
        </div>
        <div class="item">
            <img src="./img/loop/loop2.jpg" alt="...">
            <!-- <div class="carousel-caption">
                新人专属福利
            </div> -->
        </div>
        <div class="item">
            <img src="./img/loop/loop3.jpg" alt="...">
            <!-- <div class="carousel-caption">
                新人专属福利
            </div> -->
        </div>
    </div>
 
    <!-- Controls -->
    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
        <span class="sr-only">Previous</span>
    </a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
        <span class="sr-only">Next</span>
    </a>
</div>
<script src="./js./jquery.min.js"></script>
<script src="./js/bootstrap.js"></script>
    <script>
        $('.carousel').carousel({
            interval: 2000
        })
    </script>
</body>
</html>